<?php
   // header("content-type:text/html;charset=utf-8");
   // $link=mysqli_connect("localhost","root","root","heisha");
   // mysqli_set_charset($link,"utf8");
   // $query="select * from one";
   // $p=mysqli_query($link,$query);
   // print_r(json_encode(mysqli_fetch_all($p)));
   // mysqli_close($link);




// $con = mysql_connect("localhost", "root", "root","heisha");
// // mysql_select_db("数据库名称", $con);
// // $result1=mysql_query("SELECT * from goods");
// $result = mysql_query("select * from student where stuid = 2",$con);
// echo $result;

// mysql_close($con);

header("content-type:text/html;charset=utf-8");
$con=mysql_connect("localhost","root","root","heisha");
$result1=mysql_query("SELECT * from goods where stuid = 2",$con);
echo "<table><tr><td>二号产品id</td><td>ftp账号</td><td>ftp密码</td><td>数据库名称</td><td>数据库账号</td></tr>";
while($row=mysql_fetch_array($result1)){
    echo "<tr>";
    echo "<td>".$row['id']."</td>";
    echo "<td>".$row['title']."</td>";
    echo "<td>".$row['info']."</td>";
    echo "<td>".$row['price']."</td>";
    echo "<td>".$row['src']."</td>";
    echo "</tr>";
}
echo "</table>";

mysql_close($con);


?>